<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWeChatsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('we_chats', function (Blueprint $table) {
            $table->increments('id');
            $table->string('nick_name');
            $table->string('authorizer_appid')->nullable();
            $table->string('authorizer_refresh_token')->nullable();
            $table->string('service_type_info')->nullable();
            $table->string('verify_type_info')->nullable();
            $table->string('user_name')->nullable();
            $table->string('we_chat_account')->nullable();
            $table->string('qrcode_url')->nullable();
            $table->string('principal_name')->nullable();
            $table->string('signature')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('we_chats');
    }
}
